package com.cheng.OOP.Pet;

public class Pet {
    public String name;
    public  int age;
    //无参构造器


    public void shout() {
        System.out.println("叫了一声");
    }
}

/*
 public static void main(String[] args) {
        Pet dog = new Pet();
        dog.name = "旺财";
        dog.age = 3;
        dog.shout();
        System.out.println(dog.name);
        System.out.println(dog.age);
        Pet cat = new Pet();


    }

 */